/*
 * @Description: 
 * @Autor: ilmari
 * @Date: 2021-05-18 09:32:28
 * @LastEditors: ilmari
 * @LastEditTime: 2021-05-18 10:23:39
 */
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:rcmd/app/modules/rcmd/controllers/innerlog_controller.dart';

import 'persist_page.dart';


class InnerLogPage extends PersistPage<InnerLogController> {
  InnerLogPage(String key) : super(key, InnerLogController());

  @override
  Widget build(BuildContext context) {
    return Column(
      mainAxisSize: MainAxisSize.min,
      children: [
        Expanded(
            child: Obx(() => ListView.builder(
                  itemCount: controller.dispLinesCount.value,
                  itemBuilder: (BuildContext context, int index) {
                    return Text(controller.dispLines.elementAt(index).text);
                  },
                )))
      ],
    );
  }
}
